<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="asserts/js/jquery-2.1.1.min.js"></script>
  <script src="asserts/js/request.js"></script>

  <script type="text/javascript">
    $(function () {
      $("#btn").click(function () {
          ajax($.ajax({
              url: '/taobei_web/user/getAllUser',
              dataType: 'json',
              type: 'get',
              success:function(data) {
                  alert(data)
              }
          }))
      })
    })
  </script>
</head>
<body>
  <input type="button" value="查看" id="btn"/>
</body>
</html>